package com.engine4cloud.tdf.education.dto.update;

import com.engine4cloud.tdf.education.dto.EduStudentDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 学组
 *
 * @author wenjie
 * @date 2024-07-30 14:57:54
 */
@Data
@Schema(description = "学组")
public class EduGroupUpdateDTO implements Serializable {

    /**
     * 主键
     */
    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    /**
     * 学组名称
     */
    @Schema(description = "学组名称")
    private String name;

    /**
     * 学组描述
     */
    @Schema(description = "学组描述")
    private String describe;

    /**
     * 学生列表
     */
    @Schema(description = "学生列表")
    @NotEmpty(message = "学生列表不能为空")
    private List<EduStudentDTO> studentList;

}